#include "EnemyObject.h"
#include "ObjectTypes.h"

EnemyObject::EnemyObject()
{
	setObjectType(ENEMY_OBJECT);
	target = NULL;
	attackTime = 100;
	timeOfLastAttack = 0;
}

EnemyObject::~EnemyObject()
{
	
}

void EnemyObject::setTarget(PlayerObject* passedTarget)
{
	target = passedTarget;
}

PlayerObject* EnemyObject::getTarget()
{
	return target;
}

void EnemyObject::setEnemyMapKey(unsigned int passedMapKey)
{
	enemyMapKey = passedMapKey;
}

unsigned int EnemyObject::getEnemyMapKey()
{
	return enemyMapKey;
}

f32 EnemyObject::getAttackTime()
{
	return attackTime;
}

void EnemyObject::setAttackTime(f32 passedTime)
{
	attackTime = passedTime;
}

f32 EnemyObject::getTimeOfLastAttack()
{
	return timeOfLastAttack;
}

void EnemyObject::setTimeOfLastAttack(f32 passedTime)
{
	timeOfLastAttack = passedTime;
}